package com.goods.shop.service.constants;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneOffset;

public class WeiXinUrlFinals {
    public static final String APPID="APPID";
    public static final String APPSECRET="APPSECRET";
    public static final String ACCESSTOKEN="ACCESS_TOKEN";
    public static final String TYPE="TYPE";
    public static final String NEXT_OPENID="NEXT_OPENID";
    public static final String MEDIA_ID="MEDIA_ID";
    public static final String SCENE_VALUE="SCENE_VALUE";//已经关注公众号号时的SCENE_VALUE值
    public static final String TICKET="TICKET";//用于生成二维码的
    //获取ACCESS_TOKEN
    public static final String ACCESSTOKENURL="https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={APPID}&secret={APPSECRET}";
    //获取微信callback IP地址
    public static final String GETCALLBACKIPURL="https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token={ACCESS_TOKEN}";
    //获取微信API接口 IP地址
    public static final String GETAPIDOMAINIP="https://api.weixin.qq.com/cgi-bin/get_api_domain_ip?access_token={ACCESS_TOKEN}";
    //网络监测
    public static final String CHECKNETURL=" https://api.weixin.qq.com/cgi-bin/callback/check?access_token={ACCESS_TOKEN}";
    //创建菜单
    public static final String CREATEMENUURL="https://api.weixin.qq.com/cgi-bin/menu/create?access_token={ACCESS_TOKEN}";
    //获取菜单
    public static final String GETMENUURL="https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info?access_token={ACCESS_TOKEN}";
    public static final String GETMENUURL2="https://api.weixin.qq.com/cgi-bin/menu/get";
    /*****消息相关*******/
    //设置行业信息
    public static final String SETINDUSTRYURL="https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token={ACCESS_TOKEN}";
    //获取设置的行业信息
    public static final String GETINDUSTRYURL="https://api.weixin.qq.com/cgi-bin/template/get_industry?access_token={ACCESS_TOKEN}";
    //获取模板列表
    public static final String GETALLTEMPLATESURL="https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token={ACCESS_TOKEN}";
    //发送消息内容
    public static final String SENDMESSAGEURL="https://api.weixin.qq.com/cgi-bin/message/template/send?access_token={ACCESS_TOKEN}";

    //新增临时素材
    public static final String UPLOADURL="https://api.weixin.qq.com/cgi-bin/media/upload?access_token={ACCESS_TOKEN}&type={TYPE}";
    //获取临时素材
    public static final String GETTEMPRESOUREURL="https://api.weixin.qq.com/cgi-bin/media/get?access_token={ACCESS_TOKEN}&media_id={MEDIA_ID}";
    //获取素材-列表
    public static final String GETRESOURCELISTURL=" https://api.weixin.qq.com/cgi-bin/material/batchget_material?access_token={ACCESS_TOKEN}";
    //获取关注用户
    public static final String USERLISTURL="https://api.weixin.qq.com/cgi-bin/user/get?access_token={ACCESS_TOKEN}&next_openid={NEXT_OPENID}";
    //临时二维码请求说明
    public static final String CREATETOKENURL="https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token={ACCESS_TOKEN}";

    public static final String SHOWQRCODEURL="https://mp.weixin.qq.com/cgi-bin/showqrcode";
    //客服消息
    public static final String ADDKFURL="https://api.weixin.qq.com/customservice/kfaccount/add?access_token={ACCESS_TOKEN}";
    public static final String KFLISTURL="https://api.weixin.qq.com/cgi-bin/customservice/getkflist?access_token={ACCESS_TOKEN}";
    //群发接口及原创较验
    public static final String UPLOADIMGURL="https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token={ACCESS_TOKEN}";
    //群发消息
    public static final String SENDALLURL="https://api.weixin.qq.com/cgi-bin/message/mass/sendall?access_token={ACCESS_TOKEN}";
    //打标签
    public static final String CREATETAGURL="https://api.weixin.qq.com/cgi-bin/tags/create";//access_token=ACCESS_TOKEN
    public static final String TAGGETURL="https://api.weixin.qq.com/cgi-bin/tags/get";//access_token=ACCESS_TOKEN
    public static final String BATCHTAGGINGURL="https://api.weixin.qq.com/cgi-bin/tags/members/batchtagging";//access_token=ACCESS_TOKEN
    public static final String UNBATCHTAGGINGURL="https://api.weixin.qq.com/cgi-bin/tags/members/batchuntagging";//access_token=ACCESS_TOKEN
    public static final String TRYMATCHURL="https://api.weixin.qq.com/cgi-bin/menu/trymatch";//access_token=ACCESS_TOKEN
    public static final String GETIDLISTURL="https://api.weixin.qq.com/cgi-bin/tags/getidlist";//access_token=ACCESS_TOKEN
    //获取用户信息
    public static final String GETUSERINFO="https://api.weixin.qq.com/cgi-bin/user/info";//access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN
    //授权页面
    public static final String AUTHORIZEURL="https://open.weixin.qq.com/connect/oauth2/authorize";//
    //通过网页获取对应的openID
    public static final String GETOAUTHUSERINFOURL="https://api.weixin.qq.com/sns/oauth2/access_token";//access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN


    public static final String APPIDTEST="wxce55f7ed02ae4e66";
    public static final String SECRETTEST="f3ebf525a742e8d04ecaa24451e0e999";
    public static final int TAGA=100;
    public static final int TAGB=101;



    public static void main(String[] args) {
        LocalDateTime time= LocalDateTime.now();
        time=time.plusDays(100);
        System.out.println(time.toString());
        System.out.println(time.toInstant(ZoneOffset.of("+8")).toEpochMilli());
    }
}
